﻿using System;
using System.Collections.Generic;
using System.Text;

namespace Homework3
{
    class Program
    {
        static void Main(string[] args)
        {
            Console.WriteLine("Write first number: ");

            int n1 = ReadNumber();

            Console.WriteLine("Write second number: ");

            int n2 = ReadNumber();

            int result = Subtract(n1, n2);

            Console.WriteLine("Sub Result = {0}", result);

            Console.ReadKey();
        }

        static int Subtract(int n1, int n2)
        {
            return n1 - n2;
        }

        static int ReadNumber()
        {
            string s = Console.ReadLine();

            int result = int.Parse(s);

            return result;
        }
    }

}
